From: Jim Blandy Date: Wed, 16 Jun 1993 14:13:15 +0000 (+0000) Subject: * xdisp.c (redisplay_window): No need to subtract BEGV to compute X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95310 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=eebae3dd5ca9e7f3fd04ed7e6c503d73f1da3888;p=emacs.git * xdisp.c (redisplay_window): No need to subtract BEGV to compute the scroll bar handle's end. --- diff --git a/src/xdisp.c b/src/xdisp.c index e9777efee39..f2da1dd25ce 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1079,7 +1079,7 @@ done: start = startp - BEGV; /* I don't think this is guaranteed to be right. For the moment, we'll pretend it is. */ - end = (Z - XINT (w->window_end_pos)) - BEGV; + end = (Z - XINT (w->window_end_pos)); if (end < start) end = start; if (whole < (end - start)) whole = end - start;